package erfgame.core.graphics.renderer;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;

public class RectangleRenderer extends AbstractEntityRenderer {
	
	private Color color;
	
	public RectangleRenderer( Dimension dimension, Color color ) {
		super( dimension, new Point(0, 0), 0 );
		this.color = color;
	}

	public void render(Graphics g, int x, int y) {
		g.setColor( this.color );
		g.drawRect( x, y, dimension.width, dimension.height );
	}

	
	
}
